package com.datang.springcode.incidentMonitor;

import org.springframework.context.ApplicationEvent;
//继承ApplicationEvent使其类成为一个事件类
public class BlackListEvent extends ApplicationEvent {
    private final String address;
    private final String content;

    public BlackListEvent(Object source, String address, String content) {
        super(source);
        this.address = address;
        this.content = content;
    }

    public String getAddress() {
        return address;
    }

    public String getContent() {
        return content;
    }
}
